package com.kashow.bean.search;

import com.kashow.bean.BaseBean;

/**
 * Created by cg on 16/11/24.
 */

public class SearchHistoryBean extends BaseBean{
    private String name;
    private String pic = "";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SearchHistoryBean)) return false;

        SearchHistoryBean that = (SearchHistoryBean) o;

        if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null)
            return false;
        return getPic() != null ? getPic().equals(that.getPic()) : that.getPic() == null;

    }

    @Override
    public int hashCode() {
        int result = getName() != null ? getName().hashCode() : 0;
        result = 31 * result + (getPic() != null ? getPic().hashCode() : 0);
        return result;
    }
}
